#define _CRT_SECURE_NO_WARNINGS 1
int minCount(int* coins, int coinsSize) {
    int i = 0;
    int count = 0;
    for (i = 0; i < coinsSize; i++)
    {
        while (coins[i] > 0)
        {
            coins[i] -= 2;
            count++;
        }
    }
    return count;
}